﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<grupo2DEWStudio7i.Dominio.Cliente>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Modificacion
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Modificación de Cliente</h2>

   <%-- <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>--%>
     <% Html.EnableClientValidation(); %>
        <% using (Html.BeginForm("Edit", "Cliente", FormMethod.Post)) {%>
            <%: Html.ValidationSummary(true) %> 
                    
        <fieldset>
            <legend>Campos</legend>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Codigo) %>
                <%: Html.HiddenFor(model => model.Codigo) %>
            </div>
            <div class="editor-field">
                <%: Model.Codigo %>
            </div>     <p></p>      
            <%--<div class="editor-label">
                <%: Html.LabelFor(model => model.CodInstrumento) %>
            </div>
            <div class="editor-field">
                <%: Html.HiddenFor(model => model.CodInstrumento) %>
                <%: Html.TextBoxFor(model => model.CodInstrumento) %>
                <%: Html.ValidationMessageFor(model => model.CodInstrumento) %>
            </div>--%>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre)%>
                <%: Html.ValidationMessageFor(model => model.Nombre)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Dni) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Dni)%>
                <%: Html.ValidationMessageFor(model => model.Dni)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Clave) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Clave)%>
                <%: Html.ValidationMessageFor(model => model.Clave)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Correo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Correo)%>
                <%: Html.ValidationMessageFor(model => model.Correo)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FecNac) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FecNac)%>
                <%: Html.ValidationMessageFor(model => model.FecNac)%>
            </div>
                      
            <p>
                <input type="submit" value="Guardar cambios" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index")%>
    </div>

</asp:Content>

